1

1.设置用户密码

1)  mysql>set password=password('Mima');
    mysql>flush privileges;
2)  mysql>use mysql;
    mysql>update user set password=password('Mima') where user='root';
    mysql>flush privileges;

2.授予最高权限

1)mysql>grant all privileges on *.* to root@localhost identified by 'Mima'; 
   mysql>flush privileges;
   
   
   
   
   
   
   

待续。。。


韶华倾负
60 声望1 粉丝